-- GENERATED SPELL FOR [Pterrordax] --


function spell0_9166(pUnit, Event) --@Terrifying Screech,Self--
pUnit:FullCastSpellOnTarget(6605,pUnit)
pUnit:RegisterEvent('Sorts_9166', 5500, 1)
end

function Sorts_9166(pUnit, Event)
local choix_sorts_9166 = math.random(0, 0)
if choix_sorts_9166 == 0 then
pUnit:RegisterEvent('spell0_9166', 1, 1)
end
end

function mob9166_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9166', math.random(1500, 3000), 1)
end

function mob9166_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9166_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9166_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9166, 1, 'mob9166_Action')
RegisterUnitEvent(9166, 2, 'mob9166_Leave')
RegisterUnitEvent(9166, 3, 'mob9166_Kill')
RegisterUnitEvent(9166, 4, 'mob9166_Die')
